﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default"  StylesheetTheme="Skin" uiCulture="zh-SG" Culture="zh-SG" %>
<%@ Register src="UserControls/Login.ascx" tagname="Login" tagprefix="uc1" %>
<%@ Register src="UserControls/Register.ascx" tagname="Register" tagprefix="uc2" %>
<%@ Register src="UserControls/signin.ascx" tagname="signin" tagprefix="uc3" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    function Show()
    {
    var obj=document.getElementById("detail");
    obj.style.display="block";
    }
  
    </script>
</head>
<body>
    <form id="form1" runat="server">
       <!-- <uc1:Login ID="Login1" runat="server" /> -->
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  
   
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    </asp:UpdatePanel>
<table class="Table" border="0" cellpadding="5" cellspacing="0">
   <tr>
	<td colspan="2">
       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
       <ContentTemplate>
       <asp:DataList ID="DefaultShow" runat="server"  SkinID="dlSkin" 
               HorizontalAlign="Center" RepeatColumns="3" RepeatDirection="Horizontal" 
              ShowFooter="false" ShowHeader="false" Height="343px" 
               Width="625px"   >
       <ItemTemplate>
       <table class="Table" border="0" cellpadding="5" cellspacing="0">
       <tr>
		<td>
		<div class="pt" >
            <cc1:ModalPopupExtender ID="ShowDetail" runat="server" TargetControlID="out" PopupControlID="detail" DropShadow="true" X="400" Y="200" OkControlID="OkButton" CancelControlID="CancelButton" BackgroundCssClass="modalDialog" >
            </cc1:ModalPopupExtender>
       <a  href="#" id="out" runat="server"  onclick="Show" > <img alt='<%#Eval("Name") %>' src='<%#Eval("Cover")%>' /></a>
       </div>
        </td>
        <td>
        <a href="#" class="link"><%#Eval("Name") %></a>
        </td>
        <td>
        
        <asp:Panel runat="server" ID="detail" CssClass="detail" Width="400px" BackColor="InactiveCaptionText">
        <asp:Panel runat="server" ID="dDrag" Width="100%" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">
        <div><p><%#Eval("Name") %></p></div>
        </asp:Panel>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td>
					<img src='<%#Eval("Cover")%>' alt='<%#Eval("Name") %>' />
					</td>
					<td>
                    <div class="Description"><%#Eval("Description") %></div>
					</td>
				</tr>
				<tr>
					<td align="center"><asp:Button ID="OkButton" runat="server" Text="确定" /><asp:Button ID="CancelButton" runat="server" Text="取消" /></td>
				</tr>
		</table>
		
        
        </asp:Panel>
        </td>
       </tr>
       </table>
       </ItemTemplate>
   
           <ItemStyle BorderStyle="Outset" />
       </asp:DataList>
    <table width="100%" border="0" cellpadding="1" cellspacing="1" >
        <tr>
          <td   align="center" valign="middle"  class="Text">
          <asp:Label ID="lbCurrentIndex" runat="server" CssClass="Text"></asp:Label>&nbsp;
									<asp:ImageButton ImageUrl="~/App_Themes/Skin/images/bfirst.gif" ID="ibtFirst" 
                  runat="server" CommandName="first"  OnCommand="Page_Command" 
                  CausesValidation="False"  />&nbsp;
									<asp:ImageButton ImageUrl="~/App_Themes/Skin/images/bprev.gif" ID="ibtPrev" runat="server" CommandName="prev" OnCommand="Page_Command" CausesValidation="False"/>&nbsp;
									<asp:ImageButton ImageUrl="~/App_Themes/Skin/images/bnext.gif" ID="ibtNext" 
                  runat="server"  CommandName="next" OnCommand="Page_Command" 
                  CausesValidation="False" />&nbsp;
									<asp:ImageButton ImageUrl="~/App_Themes/Skin/images/btail.gif" ID="ibtLast" runat="server" CommandName="last" OnCommand="Page_Command" CausesValidation="False" />
									&nbsp;转移到<asp:TextBox ID="tbMove" runat="server" 
                  Width="30px"  SkinID="tbSkin" ontextchanged="tbMove_TextChanged">1</asp:TextBox>页<asp:RangeValidator ID="rvPage" runat="server" ControlToValidate="tbMove"
										Display="Dynamic" ErrorMessage="页码输入错误" MinimumValue="1" Type="Integer" MaximumValue="100" ></asp:RangeValidator><asp:RequiredFieldValidator ID="rfPage" runat="server" ControlToValidate="tbMove"
										Display="Dynamic" ErrorMessage="请输入页码"></asp:RequiredFieldValidator>
										<asp:ImageButton ImageUrl="~/App_Themes/Skin/images/bdo.gif" ID="ibtMove" runat="server" CommandName="move" OnCommand="Page_Command" />
							</td>
					</tr>
	         </table>
       </ContentTemplate>  
       </asp:UpdatePanel>
       </td>
	</tr>
</table> 

    </form>
    </body>
</html>
